﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Domain.Entity.EmployeePerformance
{
    /// <summary>
    /// 维修单信息表
    /// </summary>
    public class RepairOrders:Audit
    {
        [Key]
        public int Rid { get; set; }  //维修单Id

        public string? RName { get; set; }   //维修单名称

        public string? Rnum { get; set; }  //维修单编号

        public DateTime AddTime { get; set; } = DateTime.Now;  //添加时间

        [NotMapped]
        public string TimeFormat
        {
            get
            {
                return AddTime.ToString("yyyy-MM-dd");
            }
        }

        public string? Rremark { get; set; }  //备注

        public int Equipment_Id { get; set; }  //设备编号

        public int Brand_Id { get; set; }  //品牌编号
    }
}
